package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserAuthEmailDao;
import com.fqgj.xjd.user.entity.UserAuthEmailEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;


@Repository
public class UserAuthEmailDaoImpl extends AbstractBaseMapper<UserAuthEmailEntity> implements UserAuthEmailDao {


    @Override
    public UserAuthEmailEntity selectByUserCode(String userCode) {
        Map<String, Object> map = new HashMap<>();
        map.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("selectByUserCode"), map);
    }
}